﻿// CClassView.cpp: 实现文件
//

#include "pch.h"
#include "MFCDrawingBoard.h"
#include "CClassView.h"


// CClassView

IMPLEMENT_DYNAMIC(CClassView, CDockablePane)

CClassView::CClassView()
{

}

CClassView::~CClassView()
{
}


BEGIN_MESSAGE_MAP(CClassView, CDockablePane)
	ON_WM_CREATE()
	ON_WM_SIZE()
END_MESSAGE_MAP()



// CClassView 消息处理程序




int CClassView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CDockablePane::OnCreate(lpCreateStruct) == -1)
		return -1;

	// TODO:  在此添加您专用的创建代码
	SET.Create(IDD_DIALOG1, this);
	SET.ShowWindow(SW_SHOW);

	return 0;
}


void CClassView::OnSize(UINT nType, int cx, int cy)
{
	CDockablePane::OnSize(nType, cx, cy);

	// TODO: 在此处添加消息处理程序代码
	if (SET.GetSafeHwnd())
	{
		CRect rect;
		GetClientRect(&rect);
		SET.MoveWindow(rect);
	}
}
